const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 10; i++) content.push({
        num: i + 1,
        country: `国家${i}`,
        dealerId: 'string',
        dealerCode: 'string',
        varietyQuantity: 1 + i,
        amount: 1 + i,
        packing: 1 + i
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 10,
        }
    });
});

router.get('/dealer/:id', (req, res) => {
    res.json({
        message: 'string',
        payload: {
            varietyData: [{
                value: 3,
                name: '1个月',
            },
            {
                value: 7,
                name: '3个月',
            }],
            amountMeetData: [{
                value: 4,
                name: '1个月',
            },
            {
                value: 6,
                name: '3个月',
            }],
            quantityData: [{
                value: 8,
                name: '1个月',
            },
            {
                value: 2,
                name: '3个月',
            }],
        }
    });
});


module.exports = router;
